package com.nit.generate;

import com.nit.tools.loop.NitLoopTools;

/**
 * 星座 生成器
 *
 * @Auth: 逆天开源-逍遥哥哥
 * @link: 1715656022@qq.com
 * @Date: 2023-11-13
 */
public class NitHoroscopeGenerator {
    private static final String[] HOROSCOPE_ARRAY = new String[]{"摩羯座", "水瓶座", "双鱼座", "白羊座", "金牛座", "双子座", "巨蟹座", "狮子座", "处女座", "天秤座", "天蝎座", "射手座", "摩羯座"};
    private static final String[] ZODIACS_EN_ARRAY = new String[]{"Aquarius", "Pisces", "Aries", "Taurus", "Gemini", "Cancer", "Leo",
            "Virgo", "Libra", "Scorpio", "Sagittarius", "Capricorn"};

    public static String generate() {
        return HOROSCOPE_ARRAY[NitNumberGenerator.generateInt(1, 12)];
    }
    public static String generateEn() {
        return ZODIACS_EN_ARRAY[NitNumberGenerator.generateInt(1, 12)];
    }

    public static void main(String[] args) {
        NitLoopTools.loop(40, () -> {
            String tmp = NitHoroscopeGenerator.generate();
            System.out.println("随机星座:" + tmp +"<br>");
        });
        NitLoopTools.loop(40, () -> {
            String tmpEn = NitHoroscopeGenerator.generateEn();
            System.out.println("随机星座:" + tmpEn+"<br>");
        });
    }

}
